package yu.zhu.todo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import yu.zhu.todo.utils.IdWorker;

@SpringBootApplication
@MapperScan("yu.zhu.todo.dao")
public class TodoApplication {

    public static void main(String[] args) {
        SpringApplication.run(TodoApplication.class, args);
    }
    @Bean
    public IdWorker createIdWork(){
        return new IdWorker(1, 1);
    }
}
